#ifdef WITH_CG
#ifdef WITH_OPENGL

#include "shader_catalog_cg_opengl.h"
#include "shader_cg_opengl.h"

using namespace krryn::view;
using namespace krryn::system_imp;

#include "opengl.h"
#include <Cg/cgGL.h>

shader_catalog_cg_opengl::shader_catalog_cg_opengl(krryn::view::renderer &a_Renderer) : shader_catalog_cg(a_Renderer){
	cgGLSetDebugMode( CG_TRUE );
	cgGLSetManageTextureParameters(m_Context, CG_FALSE);
}

shader *shader_catalog_cg_opengl::load_shader(const std::string &a_Filename){
	return new shader_cg_opengl(*this, a_Filename, m_Context);
}

#endif
#endif
